﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Portal/Master/Portal.Master" AutoEventWireup="true" CodeBehind="EmailFindThree.aspx.cs" Inherits="Besture.UI.Portal.FindUserPwd.EmailFindThree" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
     <script type="text/javascript" src="/Resource/js/modernizr-2.6.2.min.js"></script>    
    <script type="text/javascript" src="/Resource/js/jquery.validate.js"></script>
    <style type="text/css">
        .findbox input[type=password] {height: 38px;border: 1px solid #ddd;border-radius: 3px;padding: 0 5px;width: 300px;} 
        .error{ color: red;}
    </style>
    <script  type="text/javascript">
        $(function () {
            $("form").validate({
                rules: {
                    pwd: {
                        required: true
                    },
                    ctl00$Content$newpwd: {
                        required: true,
                        minlength: 6,
                        maxlength: 16
                    },
                    rpwd: {
                        required: true,
                        equalTo: "#ctl00_Content_newpwd"
                    }
                },
                messages: {
                    pwd: {
                        required: "原密码不能为空"
                    },
                    ctl00$Content$newpwd: {
                        required: "请填写6-16个英文、数字、下划线的组合，区分大小写",
                        minlength: "密码至少6位",
                        maxlength: "密码不能超过16位"
                    },
                    rpwd: {
                        required: "请再次输入密码",
                        equalTo: "两次密码输入不一致"
                    }
                },
                errorPlacement: function (error, element) {
                    error.css({ "margin-top": "10px", "margin-left": "2px" });
                    element.after(error);
                },
                highlight: function (element, errorClass, validClass) {

                },
                unhighlight: function (element, errorClass) {
                }
            });
            $(".changword").css("color", "#fa771f");
        })
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="main">
        <div class="findpwd-page">
            <div class="tab1 clearfix" target=".findbox">
                <a href="EmailFindOne.aspx" class="email active">邮箱找回</a>
                <a href="FindUserPwdList1.aspx" class="phone">手机找回</a>
            </div>
            <div class="findbox">
                <!--邮箱找回-->
                <table>
                    <tbody>
                        <tr>
                            <td><span class="require">*</span>邮箱地址：</td>
                            <td>
                                <input type="text" id="txtEmail" runat="server" placeholder="请输入您的邮箱" readonly="readonly" />
                            </td>
                        </tr>
                        <tr>
                            <td><span class="require">*</span>新密码：</td>
                            <td>
                                <input type="password" id="newpwd" runat="server" class="re" placeholder="请输入密码"/>
                            </td>
                        </tr>
                        <tr>
                            <td><span class="require">*</span>确认密码：</td>
                            <td>
                                <input type="password"  name="rpwd" class="re" placeholder="请输入密码"/>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <asp:Button ID="save" runat="server" Text="提交" OnClick="SaveClick" /> 
                            </td>
                        </tr>
                    </tbody>
                </table> 
            </div>
        </div>
    </div>
</asp:Content>
